{{ $url := .Get 0 }} {{ if not $url }} {{ $url = "/docs/" }} {{ end }}

<script>
    // 立即跳转
    window.location.href = '{{ $url }}';
</script>

<meta http-equiv="refresh" content="0; url={{ $url }}">

<div style="text-align: center; padding: 50px; font-family: Arial, sans-serif;">
    <h2>正在跳转...</h2>
    <p>如果没有自动跳转，请 <a href="{{ $url }}">点击这里</a></p>
</div>